package com.ruoyi.archives.domain;

import com.ruoyi.common.constant.archives.ArchivesConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安全记录对象 tb_safety_record
 *
 * @author wng
 * @date 2024-08-04
 */
public class SafetyRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 记录类型
     * 风险管控清单 Risk
     * 每日检查记录 Day
     * 每周治理报告 Week
     * 每月会议纪要 Month
     */
//    @Excel(name = "记录类型 " +
//            "风险管控清单 Risk " +
//            "每日检查记录 Day " +
//            "每周治理报告 Week " +
//            "每月会议纪要 Month")
    private ArchivesConstants.SafetyRecordTypeEnum type;

    @Excel(name = "记录类型")
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    /**
     * 记录文件
     */
    @Excel(name = "记录文件", cellType = Excel.ColumnType.IMAGE)
    private String recordFile;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public ArchivesConstants.SafetyRecordTypeEnum getType() {
        return type;
    }

    public void setType(ArchivesConstants.SafetyRecordTypeEnum type) {
        this.type = type;
    }

    public void setRecordFile(String recordFile) {
        this.recordFile = recordFile;
    }

    public String getRecordFile() {
        return recordFile;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("title", getTitle())
                .append("type", getType())
                .append("recordFile", getRecordFile())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
